#ifndef XL_UI_CTRL_TARGET_H
#define XL_UI_CTRL_TARGET_H
#include "../common.h"
#include "../string.h"
#include "Control.h"

XL_BEGIN
UI_BEGIN

class CCtrlTarget
{
public:
	virtual void onCommand (uint /*id*/, CControlPtr /*ctrl*/) {}
	virtual void onSlider (uint /*id*/, int /*_min*/, int /*_max*/, int /*_curr*/, bool /*tracking*/, CControlPtr /*ctrl*/) {}

	// if timeout, gesture = _T("canceled")
	virtual tstring onGesture (const tstring &/*gesture*/, CPoint /*ptDown*/, bool /*release*/) { return _T("Unknown"); }

	virtual void onUserEvent (uint /*evt*/, void * /*param*/, CControlPtr /*ctrl*/) {}
};

UI_END
XL_END

#endif
